//
//  CommunityBottomView.m
//  BaseProject
//
//  Created by 王洋 on 2020/12/10.
//  Copyright © 2020 王洋. All rights reserved.
//

#import "CommunityBottomView.h"

@implementation CommunityBottomView

- (void)awakeFromNib {
    [super awakeFromNib];
    
    [self.tieziControl addGestureTapEventHandle:^(id  _Nonnull sender, UITapGestureRecognizer * _Nonnull gestureRecognizer) {
        if (self.CommunityBottomViewBlock) {
            self.CommunityBottomViewBlock(CommunityBottomViewActionType_tiezi);
        }
    }];
    
    [self.huatiControl addGestureTapEventHandle:^(id  _Nonnull sender, UITapGestureRecognizer * _Nonnull gestureRecognizer) {
        if (self.CommunityBottomViewBlock) {
            self.CommunityBottomViewBlock(CommunityBottomViewActionType_huati);
        }
    }];
    
    [self.tiwenControl addGestureTapEventHandle:^(id  _Nonnull sender, UITapGestureRecognizer * _Nonnull gestureRecognizer) {
        if (self.CommunityBottomViewBlock) {
            self.CommunityBottomViewBlock(CommunityBottomViewActionType_tiwen);
        }
    }];
    
}

- (void)layoutSubviews {
    [super layoutSubviews];
        
    self.layer.backgroundColor = [UIColor colorWithRed:255/255.0 green:255/255.0 blue:255/255.0 alpha:1.0].CGColor;
    self.layer.cornerRadius = 22.5;
    self.layer.shadowColor = [UIColor colorWithRed:0/255.0 green:0/255.0 blue:0/255.0 alpha:0.1].CGColor;
    self.layer.shadowOffset = CGSizeMake(0,2);
    self.layer.shadowOpacity = 1;
    self.layer.shadowRadius = 8;
    
}

@end
